package cn.wusifx.zabbix.request.builder.user;

import cn.wusifx.zabbix.request.BaseRequest;
import cn.wusifx.zabbix.request.builder.UpdateRequestBuilder;

import java.util.Map;

/**
 * https://www.zabbix.com/documentation/4.0/manual/api/reference/user/update
 */
public class UserUpdateRequestBuilder extends UpdateRequestBuilder {
    private String userId;
    public UserUpdateRequestBuilder(String method, String auth) {
        super(method, auth);
    }

    public UserUpdateRequestBuilder(String method, Long id, String auth) {
        super(method, id, auth);
    }

    public String getUserId() {
        return userId;
    }

    public UserUpdateRequestBuilder setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("userid",userId);
        return baseRequest;
    }
}
